package week3;

// Your task: find the modeling errors.

public class Rectangle {

	double a,b;
	int numberOfEdges;
	boolean isSquare;
	
	public Rectangle(double a, double b){
		this.a = a;
		this.b = b;
		if(a==b)
			isSquare = true;
		else
			isSquare = false;
	}
	
	public int getNumberOfEdges() {
		numberOfEdges = 4;
		return numberOfEdges;
	}
	
	public double computeArea() {
		return a*b;
	}
	
	public boolean isSquare(){
		return isSquare;
	}
	
	//...
}